package com.example.iotmanagerment26.domain.vo;

import com.example.iotmanagerment26.domain.Device;
import com.example.iotmanagerment26.domain.User;
import org.springframework.stereotype.Component;

/**
 * 作者：太难猫
 * 创建时间： 2025/5/30 11:06
 */
@Component
public class DeviceHoldVO {
    int id;
    User user;
    Device device;
    int holded;

    public DeviceHoldVO() {
    }

    public DeviceHoldVO(int id, User user, Device device, int holded) {
        this.id = id;
        this.user = user;
        this.device = device;
        this.holded = holded;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Device getDevice() {
        return device;
    }

    public void setDevice(Device device) {
        this.device = device;
    }

    public int getHolded() {
        return holded;
    }

    public void setHolded(int holded) {
        this.holded = holded;
    }

    @Override
    public String toString() {
        return "DeviceHoldVO{" +
                "id=" + id +
                ", user=" + user +
                ", device=" + device +
                ", holded=" + holded +
                '}';
    }
}